/**
 * 
 */
package org.springside.examples.miniweb.web;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.jsp.JspTagException;

import org.json.JSONException;
import org.json.JSONObject;
import org.springframework.stereotype.Controller;
import org.springframework.validation.BindException;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author Bob
 *
 */
@Controller
public class MenuController {

	
	@RequestMapping(value = "/popMenu")
	public String popMenu(HttpServletRequest request, HttpServletResponse response) throws JspTagException, JSONException, IOException {
		JSONObject json = new JSONObject();
		json.append("name", "父节点1");
    	response.getWriter().print(json);
    	response.getWriter().flush();
		return null;
	}
}
